import { getToken, setToken } from "../../utils/token"

// 用户登录
export const userLogin = (data) => {
  return async (dispatch) => {
    dispatch({
      type: 'userLogin',
      payload: data
    })
    const sj = await new Date()
    setToken(sj.getDate())
  }
}